﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class shoot : MonoBehaviour
{

    public GameObject Shoot;
    private GameObject player;
    private float Speed = 10f;
    // Use this for initialization
    void Start()
    {
        player = GameObject.Find("Player");
    }

    // Update is called once per frame
    void Update()
    {
        if(Input.GetMouseButtonDown(0))
        {
            shooting();
        }

    }
    public void shooting()
    {
        GameObject go;
        go = Instantiate(Shoot, player.transform.position,Quaternion.identity);
    }
}
